<script setup lang="ts">
import BlockBox from '../BlockBox.vue';
import { ref } from "vue"
const showWindow = ref()
const changOk = () => {
    console.log(111);
}
</script>
<template>
    <BlockBox text="测试弹窗">
        <es-button @click="showWindow = !showWindow">创建window</es-button>
        <es-window :show="showWindow" :title="'测试window面板'" :okText="'确认'" :cancelText="'取消'" :onlyButton="false"
            :readonly="false" :width="700" :height="400" :isFocus="true" @cancel="showWindow = false" @ok="changOk"
            :background="'rgba(0, 1, 50, 0.5)'" :btnBackground="'rgba(1, 1, 50, 0.5)'">
            <div style="color: black;">
                123
            </div>
        </es-window>
    </BlockBox>
</template>
<style scoped>
</style>
